package com.letoken.platform.repo.mall.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 商城一级分类表
 * </p>
 *
 * @author 作者
 * @since 2023-04-11
 */
@Getter
@Setter
@TableName("app_mall_menu_config")
@ApiModel(value = "AppMallOneMenuConfig对象", description = "商城一级分类表")
public class AppMallMenuConfig extends Model<AppMallMenuConfig> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("记录id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("名称")
    @TableField("level")
    private String level;

    @ApiModelProperty("上级ID")
    @TableField("chapter_parent")
    private Integer chapterParent;

    @ApiModelProperty("创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty("二级分类列表")
    @TableField(exist = false)
    private List<AppMallMenuConfig> twolist;

    @ApiModelProperty("排序值 倒序")
    @TableField("sort")
    private Integer sort;

    @ApiModelProperty("图标")
    @TableField("icon")
    private String icon;

    @ApiModelProperty("状态")
    @TableField("state")
    private Integer state;




    @Override
    public Serializable pkVal() {
        return this.id;
    }

}
